Exynos5: Fix exynos5_get_periph_rate calculations
authorAkshay Saraswat <[email protected]>
Wed, 4 Feb 2015 10:30:02 +0000 (16:00 +0530)
committerMinkyu Kang <[email protected]>
Fri, 13 Feb 2015 08:23:06 +0000 (17:23 +0900)
commit9deff107468ac6d80db962470796e05c667c1077
tree9d058dd9a5dea7a71ccf007415ced631796be486
parentecdfb4e9d2e2bd691e94ee8f96da2e8d7dc45e81
Exynos5: Fix exynos5_get_periph_rate calculations

exynos5_get_periph_rate function reads incorrect div for
SDMMC2 & 3. It also reads prediv and does division only for
SDMMC0 & 2 when actually various other peripherals need that.
Adding changes to fix these mistakes in periph rate calculation.

Signed-off-by: Akshay Saraswat <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Tested-by: Simon Glass <[email protected]>
Signed-off-by: Minkyu Kang <[email protected]>
arch/arm/cpu/armv7/exynos/clock.c